Arexx (21/45)

From:Bernd Gollesch
Date:5 Sep 2001 at 08:15:19
Subject:Re: Harddrive access

>/* filesplitter */
>open('infile','ram:in','R')
>open('odd','ram:odd','W')
>open('even','ram:even','W')
>do until eof('infile')
>writeln('odd',readln('infile'))
>writeln('even',readln('infile'))
>end

You should place a CALL in front of each function:

/* filesplitter */
call open('infile','ram:in','R')
call open('odd','ram:odd','W')
call open('even','ram:even','W')
do until eof('infile')
call writeln('odd',readln('infile'))
call writeln('even',readln('infile'))
end

open() and writeln() are returning a value and without the call
statement before, Arexx tries to interpret the returned value
as a command. If you run snoopdos you will notice that Arexx
tries to open some files (eg 1, 1.rexx, REXX:1, REXX:1.rexx or so).

HTH, Bernd

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/saFolB/TM
---------------------------------------------------------------------~->

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/